<?php
    $selected_region_setting = array(
        'table_name' => 'animus_sub_region',
        'key_field' => 'id',
        'value_field' => 'name',
    );
?>

<div id="wrapper-content">
    <table class="titrepage" width="100%">
        <tr>
            <td >Ajouter promenade</td>
            <td align="right"> </td>
        </tr>
    </table>
<?php echo form_open_multipart('doggy_admin/add_parkway') ?>
    <table width="100%" class="list">
        <tr>
            <td><label for="region_id">Région:</label></td>
            <td><?php echo form_dropdown('region_id',dropdown_data($selected_region_setting),1)?></td>
        </tr>
        <tr>
            <td width="30%" >Nom du parc:</td>
            <td><input type="text" name="name" size="30" value="<?php echo set_value('name')?>"/></td>
            <td><?php echo form_error('name'); ?></td>
        </tr>
        <tr>
            <td><label >Image:</label></td>
            <td><input type="file" name="userfile" id="userfile" size="25"/></td>
        </tr>
        <tr>
            <td width="30%" >Description:</td>
            <td colspan="2">
                    <?php
                    $data = array('name' => 'description',
                        'id' => 'description',
                        'width' => '610',
                        'height' => '250',
                        'value' => '',
                        'type' =>'text'
                    );
                    echo form_fckeditor($data);
                    ?>
            </td>
        </tr>
        <tr>
            <td></td>
            <td colspan="2"><?php echo form_error('description'); ?></td>
        </tr>
        <tr>
            <td><input type="submit" value=" Ajouter " name ="submit"/> </td>
        </tr>
    </table>

</div>